#include "background.h"
#include "ui_background.h"

background::background(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::background)
{
    ui->setupUi(this);
    this->setGeometry(QRect(250,150,1200,800));
}

background::~background()
{
    delete ui;
}

void background::on_to_choose_clicked()
{
    this->close();
    ch=new choose();
    ch->show();
}

void background::paintEvent(QPaintEvent *event)
{
    QPainter painter(this);
    painter.drawPixmap(0,0,1200,800,QPixmap(":/new/prefix1/p2.jpg"));
}
